package model

import "time"

type UserModel struct {
	Id       int64
	Name     string    `xorm:"varchar(64) notnull 'name' comment('姓名')"`
	OpenId   string    `xorm:"varchar(255) notnull 'open_id' comment('微信唯一id')"`
	Password string    `xorm:"varchar(255) notnull 'password' comment('密码')"`
	Phone    string    `xorm:"varchar(255) notnull 'phone' comment('手机号')"`
	Country  string    `xorm:"varchar(255) notnull 'country' comment('国家')"`
	Email    string    `xorm:"varchar(255) notnull 'email' comment('邮箱')"`
	Gender   bool      `xorm:"notnull 'gender' comment('性别')"`
	Activity bool      `xorm:"notnull 'activity' comment('活跃')"`
	CreateAt time.Time `xorm:"'create_at' created"`
	UpdateAt time.Time `xorm:"'update_at' updated"`
	DeleteAt time.Time `xorm:"'delete_at' deleted"`
}

func (UserModel) TableName() string {
	return "user"
}
